<?php
include(__APP_PATH . '/model/comment.class.php');
include(__APP_PATH . '/model/image.class.php');
include(__APP_PATH . '/model/gallery.class.php');

/**
 * This controller handles all the pages without controller
 * 
 * @author johan <info@johandahlberg.com>
 */
class IndexController extends BaseController {
	/**
	 * (non-PHPdoc)
	 * @see BaseController::index()
	 */
	public function index() {
		$this->registry->template->oGallery = new Gallery(__APP_PATH . '/data/gallery.xml');
		
	    /*** set a template variable ***/
	    $this->registry->template->welcome = 'Welcome to WPROG Group 5';
	
	    /*** load the index template ***/
	    $this->registry->template->show('index');
	}
}

?>